package com.wuze.cloud.request;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * @author: wuze
 * @description:
 * @date: 2023/02/16
 */
@Data
public class SysUpdateUserQuery implements Serializable {
    private static final long serialVersionUID = -6300822366120338290L;

    @NotNull(message = "用户名不能为空")
    @Length(min = 6, max = 11, message = "用户名为6-11位")
    private String userName;
    @NotNull(message = "用户密码不能为空")
    @Length(min = 6, max = 11, message = "密码名为6-11位")
    private String password;
    @NotNull(message = "用户电话号码不能为空")
    @Length(min = 11, max = 11, message = "电话号码必须为11位")
    private String phone;
    @NotNull(message = "用户性别不能为空")
    private Integer gender;

    @NotNull(message = "邮箱不能为空")
    private String email;

}
